﻿namespace todictionary
{
    public class StringDings
    {
        public string String { get; set; }

        public bool Equals(StringDings other) {
            if (ReferenceEquals(null, other)) {
                return false;
            }
            if (ReferenceEquals(this, other)) {
                return true;
            }
            return Equals(other.String, String);
        }

        public override bool Equals(object obj) {
            if (ReferenceEquals(null, obj)) {
                return false;
            }
            if (ReferenceEquals(this, obj)) {
                return true;
            }
            return Equals((StringDings)obj);
        }

        public override int GetHashCode() {
            return (String != null ? String.GetHashCode() : 0);
        }
    }
}